package com.yuezhu.com_volley;

import com.android.volley.AuthFailureError;
import com.android.volley.Response;
import com.android.volley.toolbox.StringRequest;

import java.util.HashMap;
import java.util.Map;

/**
 * @创建人：zhaoshuzhen
 * @创建时间：2016/1/5 10:11
 */
public class StringPostRequest extends StringRequest {
   private Map<String,String> map = new HashMap<String,String>();
    public StringPostRequest(String url, Map<String,String> map, Response.Listener<String> listener, Response.ErrorListener errorListener) {
        super(Method.POST, url, listener, errorListener);
        this.map = map ;
    }
    @Override
    protected Map<String, String> getParams() throws AuthFailureError {
        return map;
    }
}
